import camera
import image
from animation import tiler_noclip, animation_single
            
class background (object) :
    """ Draws all background elements """
    def __init__ (self, (bg_x, bg_y)) :
        """ Init: load background images """
        self.background = animation_single (image.load ('back.png'))
        self.ground = tiler_noclip (image.load ('ground.png'), 0, bg_x, bg_y - 360)
        self.buildings = tiler_noclip (image.load ('buildings.png'), 0, bg_x, bg_y - 360 - 55)
    def draw (self) :
        """ Draw the separate bg objects """
        self.background.draw ()
        self.ground.draw ()
        self.buildings.draw ()
        